package Meituan.Feature;

import com.google.common.base.Splitter;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * @author: leiwenkang
 * @date: 2020/4/24
 * @time: 19:42
 */
public class FeatureAddSgMkt {
    public static void main(String[] args) {
        String str = "day_of_week:-70000.0\n" +
                "is_day_of_week_end:-70000.0\n" +
                "sg_all_ck_7days:-70000.0\n" +
                "sg_all_ck_30days:-70000.0\n" +
                "sg_all_ck_90days:-70000.0\n" +
                "sg_all_ck_rate_7_30days:-70000.0\n" +
                "sg_all_ck_rate_30_90days:-70000.0\n" +
                "sg_all_ck_rate_7_90days:-70000.0\n" +
                "mt_ups_mt_age:-70000.0\n" +
                "mt_ups_mt_gender:-70000.0\n" +
                "mt_ups_mt_is_student:-70000.0\n" +
                "mt_ups_mt_is_white_collar:-70000.0\n" +
                "mt_ups_mt_edu_level:-70000.0\n" +
                "mt_ups_mt_salary_level:-70000.0\n" +
                "mt_ups_mt_marital_status:-70000.0\n" +
                "mt_ups_mt_have_child:-70000.0\n" +
                "mt_ups_mt_consume_style:-70000.0\n" +
                "wm_portrait_end_order_source:-70000.0\n" +
                "wm_portrait_cnt_7days:-70000.0\n" +
                "wm_portrait_cnt_30days:-70000.0\n" +
                "wm_portrait_cnt_90days:-70000.0\n" +
                "wm_portrait_end_order_dt:-70000.0\n" +
                "wm_portrait_first_order_dt:-70000.0\n" +
                "wm_portrait_end_aor_type:-70000.0\n" +
                "wm_portrait_first_aor_type:-70000.0\n" +
                "wm_portrait_date_fst_to_now:-70000.0\n" +
                "wm_portrait_date_end_to_now:-70000.0\n" +
                "wm_portrait_dazhongapp:-70000.0\n" +
                "wm_portrait_eleme:-70000.0\n" +
                "wm_portrait_meituanwaimai:-70000.0\n" +
                "wm_portrait_meituanapp:-70000.0\n" +
                "wm_portrait_jddjapp:-70000.0\n" +
                "wm_portrait_churn_rate:-70000.0\n" +
                "wm_portrait_ord_num_total:-70000.0\n" +
                "wm_portrait_ord_amt_total:-70000.0\n" +
                "wm_portrait_pay_amt_total:-70000.0\n" +
                "wm_portrait_max_price:-70000.0\n" +
                "wm_portrait_min_price:-70000.0\n" +
                "wm_portrait_weekend_min_price:-70000.0\n" +
                "wm_portrait_avg_sub_ord_amt_total:-70000.0\n" +
                "wm_portrait_avg_ord_amt:-70000.0\n" +
                "wm_portrait_avg_pay_amt:-70000.0\n" +
                "wm_portrait_avg_ord_num_7days:-70000.0\n" +
                "wm_portrait_avg_ord_num_30days:-70000.0\n" +
                "wm_portrait_avg_ord_num_90days:-70000.0\n" +
                "wm_portrait_alphau2_flag:-70000.0\n" +
                "wm_portrait_count_nofee_order_num:-70000.0\n" +
                "wm_portrait_act_cost_rate:-70000.0\n" +
                "wm_portrait_is_receive_red_7days:-70000.0\n" +
                "wm_portrait_is_cheat:-70000.0\n" +
                "wm_portrait_cancel_ord_total_rate:-70000.0\n" +
                "aor_new_uv:-70000.0\n" +
                "aor_sg_first_ord_uv:-70000.0\n" +
                "aor_conversion_rate:-70000.0\n" +
                "aor_city_new_uv:-70000.0\n" +
                "aor_city_sg_first_ord_uv:-70000.0\n" +
                "aor_city_conversion_rate:-70000.0\n" +
                "aor_city_conversion_ratio:-70000.0\n" +
                "aor_ratio_percent:-70000.0\n" +
                "aor_cac:-70000.0\n" +
                "aor_order_uv:-70000.0\n" +
                "aor_discount_amt:-70000.0\n" +
                "aor_poi_charge_amt:-70000.0\n" +
                "aor_agent_charge_amt:-70000.0\n" +
                "aor_nmd_charge_amt:-70000.0\n" +
                "aor_outer_channel_charge_amt:-70000.0\n" +
                "aor_sg_charge_amt:-70000.0\n" +
                "aor_original_price:-70000.0\n" +
                "aor_actual_price:-70000.0\n" +
                "aor_poi_num:-70000.0\n" +
                "city_cac:-70000.0\n" +
                "city_poi_rate:-70000.0\n" +
                "city_mtdp_rate:-70000.0\n" +
                "city_sg_rate:-70000.0\n" +
                "city_order_uv:-70000.0\n" +
                "city_discount_amt:-70000.0\n" +
                "city_poi_charge_amt:-70000.0\n" +
                "city_agent_charge_amt:-70000.0\n" +
                "city_nmd_charge_amt:-70000.0\n" +
                "city_outer_channel_charge_amt:-70000.0\n" +
                "city_sg_charge_amt:-70000.0\n" +
                "city_original_price:-70000.0\n" +
                "city_actual_price:-70000.0\n" +
                "city_poi_num:-70000.0\n" +
                "city_aor_num:-70000.0\n" +
                "sg_search_cnt_in_3_month:-70000.0\n" +
                "sg_search_cnt_in_2_month:-70000.0\n" +
                "sg_search_cnt_in_1_month:-70000.0\n" +
                "sg_search_cnt_in_2_week:-70000.0\n" +
                "sg_search_cnt_in_1_week:-70000.0\n" +
                "sg_click_cnt_in_3_month:-70000.0\n" +
                "sg_click_cnt_in_2_month:-70000.0\n" +
                "sg_click_cnt_in_1_month:-70000.0\n" +
                "sg_click_cnt_in_2_week:-70000.0\n" +
                "sg_click_cnt_in_1_week:-70000.0\n" +
                "sg_view_cnt_in_3_month:-70000.0\n" +
                "sg_view_cnt_in_2_month:-70000.0\n" +
                "sg_view_cnt_in_1_month:-70000.0\n" +
                "sg_view_cnt_in_2_week:-70000.0\n" +
                "sg_view_cnt_in_1_week:-70000.0\n" +
                "sg_ord_cnt_in_3_month:-70000.0\n" +
                "sg_ord_cnt_in_2_month:-70000.0\n" +
                "sg_ord_cnt_in_1_month:-70000.0\n" +
                "sg_ord_cnt_in_2_week:-70000.0\n" +
                "sg_ord_cnt_in_1_week:-70000.0\n" +
                "mt_ups_latent_prob:-70000.0\n" +
                "coupon_amount:-70000.0\n" +
                "sg_entry_expose_pv:-70000.0\n" +
                "sg_entry_click_pv:-70000.0\n" +
                "sg_home_page_expose_pv:-70000.0\n" +
                "sg_submit_page_expose_pv:-70000.0\n" +
                "sg_submitted_pv:-70000.0\n" +
                "wm_portrait_label_r:-70000.0\n" +
                "sg_work_day_cnt:-70000.0\n" +
                "sg_weekend_am_day_cnt:-70000.0\n" +
                "sg_weekend_pm_day_cnt:-70000.0\n" +
                "sg_morning_cnt:-70000.0\n" +
                "sg_night_cnt:-70000.0\n" +
                "sg_lingqu_cnt:-70000.0\n" +
                "sg_lingqu_coupon_amount:-70000.0\n" +
                "sg_use_cnt:-70000.0\n" +
                "sg_use_coupon_amount:-70000.0\n" +
                "sg_lingqu_use_rate:-70000.0\n" +
                "sg_click_num:-70000.0\n" +
                "sg_expose_num:-70000.0\n" +
                "sg_poi_home_num:-70000.0\n" +
                "sg_p_submit_order_num:-70000.0\n" +
                "sg_avg_submit_original_price:-70000.0\n" +
                "sg_submit_ord_num:-70000.0\n" +
                "sg_push_ord_num:-70000.0\n" +
                "sg_third_cate_score:-70000.0\n" +
                "sg_ka_score:-70000.0\n" +
                "sg_cka_score:-70000.0\n" +
                "sg_sandian_score:-70000.0\n" +
                "sg_cat_20_score:-70000.0\n" +
                "sg_cat_21_score:-70000.0\n" +
                "sg_cat_22_score:-70000.0\n" +
                "sg_cat_1001_score:-70000.0\n" +
                "sg_cat_5001_score:-70000.0\n" +
                "wm_search_cnt_in_3_month:-70000.0\n" +
                "wm_search_cnt_in_2_month:-70000.0\n" +
                "wm_search_cnt_in_1_month:-70000.0\n" +
                "wm_search_cnt_in_2_week:-70000.0\n" +
                "wm_search_cnt_in_1_week:-70000.0\n" +
                "wm_view_cnt_in_3_month:-70000.0\n" +
                "wm_view_cnt_in_2_month:-70000.0\n" +
                "wm_view_cnt_in_1_month:-70000.0\n" +
                "wm_view_cnt_in_2_week:-70000.0\n" +
                "wm_view_cnt_in_1_week:-70000.0\n" +
                "wm_ord_cnt_in_3_month:-70000.0\n" +
                "wm_ord_cnt_in_2_month:-70000.0\n" +
                "wm_ord_cnt_in_1_month:-70000.0\n" +
                "wm_ord_cnt_in_2_week:-70000.0\n" +
                "wm_ord_cnt_in_1_week:-70000.0\n" +
                "wm_portrait_ord_num_90day:-70000.0\n" +
                "wm_portrait_avg_price_90day:-70000.0\n" +
                "wm_portrait_median_price_90day:-70000.0\n" +
                "wm_portrait_sum_amt_90day:-70000.0\n" +
                "wm_portrait_aggreredeem:-70000.0\n" +
                "wm_portrait_order_cnt_180days:-70000.0\n" +
                "mt_ups_sensi_score:-70000.0\n" +
                "mt_ups_mt_daozong_score:-70000.0\n" +
                "mt_ups_mt_hotel_score:-70000.0\n" +
                "mt_ups_mt_maoyan_score:-70000.0\n" +
                "mt_ups_mt_waimai_score:-70000.0\n" +
                "mt_ups_mt_ups_mt_daocan_score:-70000.0\n" +
                "mt_ups_mt_waimai_p:-70000.0\n" +
                "mt_ups_mt_is_touch:-70000.0\n" +
                "mt_ups_mt_push_sensitivity_score:-70000.0\n" +
                "mt_ups_consume_waimai_level:-70000.0\n" +
                "mt_ups_consume_daocan_level:-70000.0\n" +
                "mt_ups_consume_maoyan_level:-70000.0\n" +
                "mt_ups_consume_enjoy_level:-70000.0\n" +
                "mt_ups_consume_hotel_level:-70000.0\n" +
                "mt_ups_consume_jingnei_level:-70000.0\n" +
                "mt_ups_consume_beauty_level:-70000.0\n" +
                "mt_ups_consume_traffic_level:-70000.0\n" +
                "mt_ups_consume_peisong_level:-70000.0\n" +
                "mt_ups_consume_marriage_level:-70000.0\n" +
                "mt_ups_consume_jingwai_level:-70000.0\n" +
                "mt_ups_consume_gouwu_level:-70000.0\n" +
                "mt_ups_consume_homeedu_level:-70000.0\n" +
                "mt_ups_consume_zhenguo_level:-70000.0\n" +
                "mt_ups_waimai_m_score:-70000.0\n" +
                "mt_ups_waimai_r_score:-70000.0\n" +
                "mt_ups_waimai_f_score:-70000.0\n" +
                "mt_ups_waimai_re_score:-70000.0\n" +
                "mt_ups_daocan_m_score:-70000.0\n" +
                "mt_ups_daocan_r_score:-70000.0\n" +
                "mt_ups_daocan_f_score:-70000.0\n" +
                "mt_ups_daocan_re_score:-70000.0\n" +
                "mt_ups_daozong_m_score:-70000.0\n" +
                "mt_ups_daozong_r_score:-70000.0\n" +
                "mt_ups_daozong_f_score:-70000.0\n" +
                "mt_ups_daozong_re_score:-70000.0\n" +
                "mt_ups_hotel_m_score:-70000.0\n" +
                "mt_ups_hotel_r_score:-70000.0\n" +
                "mt_ups_hotel_f_score:-70000.0\n" +
                "mt_ups_hotel_re_score:-70000.0\n" +
                "mt_ups_maoyan_m_score:-70000.0\n" +
                "mt_ups_maoyan_r_score:-70000.0\n" +
                "mt_ups_maoyan_f_score:-70000.0\n" +
                "mt_ups_maoyan_re_score:-70000.0\n" +
                "push_arrive_num_1day:-70000.0\n" +
                "push_click_num_1day:-70000.0\n" +
                "push_order_num_1day:-70000.0\n" +
                "push_ctr_1day:-70000.0\n" +
                "push_cxr_1day:-70000.0\n" +
                "push_arrive_num_7day:-70000.0\n" +
                "push_click_num_7day:-70000.0\n" +
                "push_order_num_7day:-70000.0\n" +
                "push_ctr_7day:-70000.0\n" +
                "push_cxr_7day:-70000.0\n" +
                "push_arrive_num_30day:-70000.0\n" +
                "push_click_num_30day:-70000.0\n" +
                "push_order_num_30day:-70000.0\n" +
                "push_ctr_30day:-70000.0\n" +
                "push_cxr_30day:-70000.0\n" +
                "sg_push_arrive_num_1day:-70000.0\n" +
                "sg_push_click_num_1day:-70000.0\n" +
                "sg_push_order_num_1day:-70000.0\n" +
                "sg_push_ctr_1day:-70000.0\n" +
                "sg_push_cxr_1day:-70000.0\n" +
                "sg_push_arrive_num_7day:-70000.0\n" +
                "sg_push_click_num_7day:-70000.0\n" +
                "sg_push_order_num_7day:-70000.0\n" +
                "sg_push_ctr_7day:-70000.0\n" +
                "sg_push_cxr_7day:-70000.0\n" +
                "sg_push_arrive_num_30day:-70000.0\n" +
                "sg_push_click_num_30day:-70000.0\n" +
                "sg_push_order_num_30day:-70000.0\n" +
                "sg_push_ctr_30day:-70000.0\n" +
                "sg_push_cxr_30day:-70000.0\n" +
                "coupon_ck_num_30day:-70000.0\n" +
                "ck_num_30day:-70000.0\n" +
                "coupon_page_num_30day:-70000.0\n" +
                "coupon_ck_num_7day:-70000.0\n" +
                "ck_num_7day:-70000.0\n" +
                "coupon_page_num_7day:-70000.0\n" +
                "coupon_ck_num_1day:-70000.0\n" +
                "ck_num_1day:-70000.0\n" +
                "coupon_page_num_1day:-70000.0";

        addSgMkt(str);
    }

    private static void addSgMkt(String str) {
        if (StringUtils.isBlank(str)) {
            return;
        }

        List<String> list = Splitter.on("\n").splitToList(str);
        for (String featureValue: list) {
            List<String> featureValueList = Splitter.on(" ").splitToList(featureValue);
            String featureName = featureValueList.get(0).trim();

            System.out.println("sg_mkt_" + featureName);
        }

    }
}
